﻿using EventBusDemo.EventBus.Abstractions.Distributed;
using EventBusDemo.EventBus.Abstractions.Local;
using EventBusDemo.EventBus.Distributed;
using EventBusDemo.EventBus.Local;
using Microsoft.Extensions.DependencyInjection;

namespace EventBusDemo.EventBus;

public static class ServiceCollectionExtensions
{
    public static void AddEventBus(this IServiceCollection services)
    {
        services.AddScoped<ILocalEventBus, LocalEventBus>();
        services.AddScoped<IDistributedEventBus, DistributedEventBus>();
    }
}